from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from . import views

urlpatterns = [
    # 注册
    url(r'register$', views.RegiseterView.as_view()),
    url(r'active/$', views.ActiveView.as_view()),
    # 登录
    url(r'login$', views.LoginView.as_view(),name='login'),
    url(r'logout$', views.LogOutView.as_view(),name='logout'),
    # 用户中心
    url(r'user$', views.UserInfoView.as_view(),name='user'),
    # 用户地址
    url(r'address$', views.UserAddressView.as_view(), name='address'),
    # 全部订单
    url(r'order/(?P<num_page>\d+)$', views.UserOrderView.as_view(), name='order'),


]
